let file = Gio.File.new_for_uri(this._player.trackCoverUrl);
this._icon.gicon = new Gio.FileIcon({file});
this._icon.remove_style_class_name('fallback');
- } else if (this._player.app) {
- this._icon.gicon = this._player.app.icon;
- this._icon.add_style_class_name('fallback');
} else {
this._icon.icon_name = 'audio-x-generic-symbolic';
this._icon.add_style_class_name('fallback');
});
}
- // 'image-data' (or 'image-path') takes precedence over 'app-icon'.
let gicon = this._imageForNotificationData(hints);
- if (!gicon)
- gicon = this._iconForNotificationData(appIcon);
-
if (!gicon)
gicon = this._fallbackIconForNotificationData(hints);
? MessageTray.PrivacyScope.SYSTEM
: MessageTray.PrivacyScope.USER);
- let sourceGIcon = source.useNotificationIcon ? gicon : null;
+ // Only fallback to 'app-icon' when the source doesn't have a valid app
+ const sourceGIcon = source.app ? null : this._iconForNotificationData(appIcon);
source.processNotification(notification, sourceGIcon);
}
if (this.app)
this.title = this.app.get_name();
- else
- this.useNotificationIcon = true;
if (sender) {
this._nameWatcherId = Gio.DBus.session.watch_name(sender,